<script language="javascript">
    var ns4 = (document.layers) ? true : false;
    var ie4 = (document.all && !document.getElementById) ? true : false;
    var now = new Date();
    now.hrs = '00';
    now.min = '00';
    now.sec = '00';
    var dclk;

    function setclock() {
        now = new Date();
        now.hrs = now.getHours();
        now.min = now.getMinutes();
        now.sec = now.getSeconds();
        now.hrs = ((now.hrs > 12) ? now.hrs - 12 : now.hrs) + "";
        now.hrs = ((now.hrs < 10) ? "0" : "") + now.hrs;
        now.min = ((now.min < 10) ? "0" : "") + now.min;
        now.sec = ((now.sec < 10) ? "0" : "") + now.sec;
        if (ns4) {
            dclk.document.open();
            dclk.document.write('<div style="position:absolute; left:0px; top:0px; font-size:80px; color:white;"><center>' + now.hrs + ':' + now.min + ':' + now.sec + '</center></div>');
            dclk.document.close();
        } else
            dclk.innerHTML = now.hrs + ':' + now.min + ':' + now.sec;
    }

    window.onload = function() {
        setInterval('setclock()', 300);
        dclk = (ns4) ? document.layers['dclk'] : (ie4) ? document.all['dclk'] : document.getElementById('dclk');
    }

    window.onresize = function() {
        if (ns4)
            setTimeout('history.go(0)', 400);
    }
</script>



<script language="javascript">

    // Created by: Lee Underwood :: http://javascript.internet.com/

    function displayDate() {
        var now = new Date();
        var day = now.getDay();
        var today = now.getDate();
        var month = now.getMonth();

        var dayName = new Array(6);
        dayName[0] = "Chủ nhật";
        dayName[1] = "Thứ hai";
        dayName[2] = "Thứ ba";
        dayName[3] = "Thứ tư";
        dayName[4] = "Thứ năm";
        dayName[5] = "Thứ sáu";
        dayName[6] = "Thứ bảy";


        var monthName = new Array(12)
        monthName[0] = "/1";
        monthName[1] = "/2";
        monthName[2] = "/3";
        monthName[3] = "/4";
        monthName[4] = "/5";
        monthName[5] = "/6";
        monthName[6] = "/7";
        monthName[7] = "/8";
        monthName[8] = "/9";
        monthName[9] = "/10";
        monthName[10] = "/11";
        monthName[11] = "/12";
        var year = now.getFullYear();
        document.write(dayName[day] + ', ngày ' + today + monthName[month] + "/" + year);
    }
</script>



<div style="margin:0 10px; float: left; font-weight: bold">
    <script type="text/javascript">
        displayDate();
    </script>
</div>
